package com.linkhub.oms.admin.modules.user.attachment.service;

import com.linkhub.oms.admin.modules.user.attachment.domain.vo.UserAttachmentVO;
import com.linkhub.oms.common.enums.mp.UserAttachmentEnum;
import com.linkhub.oms.entity.UserAttachmentEntity;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 用户附件表 服务类
 * </p>
 *
 * @author Frank
 * @since 2024-05-26
 */
public interface IUserAttachmentService extends IService<UserAttachmentEntity> {
    /**
     * 查询用户附件
     * @param userId userId
     * @param bizId bizId
     * @param bizType bizType
     * @return List<UserAttachmentEntity>
     */
    List<UserAttachmentEntity> getByUserId(String userId, Long bizId, UserAttachmentEnum bizType);

    /**
     * 批量保存附件
     * @param userId userId
     * @param bizId bizId
     * @param bizType bizType
     * @param attachmentList attachmentList
     */
    void saveAttachmentBatch(String userId, Long bizId, UserAttachmentEnum bizType, List<UserAttachmentVO> attachmentList);
}
